package com.gs.cd.righttool.fegin;

import cn.hutool.core.util.StrUtil;
import com.gs.cd.api.ApiResult;
import com.gs.cd.model.resource.SysResource;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.List;

@RefreshScope
@FeignClient(value = "ervice-resouce") //service-auth 为service-auth服务的spring name
@Component
public interface ApiClient {

   /**
    * [资源]获取树结构的资源
    *
    * @param saleCode
    * @return
    */
   @GetMapping("v1/resource/{saleCode}/resource/listTree")
   List<SysResource> treeListAllResource(@PathVariable String saleCode);

}

